.desk-title-bar {
  user-select: none;
  -webkit-app-region: drag;
  app-region: drag;
  cursor: default;
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  visibility: visible;
  padding-left: 12px;

  .left-bar {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    font-size: 16px;
    margin-right: 8px;
  }

  .controls {
    user-select: none;
    cursor: default;
    display: flex;
    height: 32px;

    .button {
      -webkit-user-select: none;
      user-select: none;
      -webkit-app-region: no-drag;
      app-region: no-drag;
      cursor: default;
      width: 46px;
      height: 100%;
      line-height: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      fill: currentColor;

      &.minimize {
        stroke: currentColor;
      }
    }

    .icon {
      width: 10px;
      height: 10px;
    }
  }

  .title {
    user-select: none;
    cursor: default;
    font-size: 13px;
    color: #fff;
    flex: 1 1 0;
  }

  // 黑色主题
  &.dark {
    .left-bar {
      color: #fff;
    }
    .controls {
      .button {
        color: #fff;
        &.close {
          &:hover {
            transition: background-color 0.1s;
            background-color: #e81123;
          }
          &:active {
            background-color: #f1707a;
          }
        }

        &.maximize,
        &.minimize {
          &:hover {
            transition: background-color 0.1s;
            background-color: rgba(255, 255, 255, 0.13);
          }
          &:active {
            background-color: rgba(255, 255, 255, 0.23);
          }
        }
      }
    }
  }

  // 亮色主题
  &.light {
    .left-bar {
      color: #000;
    }
    .controls {
      .button {
        color: #000;

        &.close {
          &:hover {
            transition: background-color 0.1s;
            background-color: #e81123;
            color: #fff;
          }

          &:active {
            background-color: #f1707a;
            color: #fff;
          }
        }

        &.maximize,
        &.minimize {
          &:hover {
            transition: background-color 0.1s;
            background-color: #e5e5e5;
          }

          &:active {
            background-color: #ccc;
          }
        }
      }
    }
  }
}
